import Ajax from './customajax' //自封装的ajxa

export default {
    userLogin(params) {
        const url = '/login';
        return Ajax.queryPost(url, params);
    },
    userLogout(params) {
        const url = '/logout';
        return Ajax.query(url, params);
    },
    cas_getUser(param) {
        const url = '/dirms/cas/cas_getUser';
        return Ajax.queryPost(url, param);
    },
    getAppInfo(callback) {
        const url = '/dirms/cas/getAppInfo';
        return Ajax.syncQuery(url, {}, callback);
    },
    isLogin(callback) {
        const url = '/isLogin';
        return Ajax.syncQuery(url, {}, callback);
    }
}